package thread;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

/*
 * @author zzr
 * @date: 2025/04/04  22:12
 * @description:
 */
public class ThreadDemo38 {
    public static void main(String[] args) throws InterruptedException {
        BlockingQueue<String> queue = new ArrayBlockingQueue<>(1000);

        queue.put("AAA");

        String elem = queue.take();
        System.out.println("elem = " + elem);

    }
}
